import { axios } from './request'

// UserManage组件获取所有用户信息请求
export function getusers (tstar, tend) {
  return axios({
    url: '/getalluser',
    method: 'GET',
    params: {
      star: tstar,
      end: tend
    }
  })
}

// UserManage组件对话框更改用户状态请求
export function getchangestatus (tid) {
  return axios({
    url: '/changeuserstatus',
    method: 'GET',
    params: {
      id: tid
    }
  })
}

// UserManage组件对话框更改用户评论状态请求
export function getcommentstatus (tid, cid) {
  return axios({
    url: '/commentstatus',
    method: 'GET',
    params: {
      id: tid,
      commentid: cid
    }
  })
}

// UserManage组件对话框删除用户评论请求
export function getdeletecomment (tid, cid) {
  return axios({
    url: '/deletecomment',
    method: 'GET',
    params: {
      id: tid,
      commentid: cid
    }
  })
}
